Fix handling of window-min-height/-width (Bug#16738).
authormartin rudalics <rudalics@gmx.at>
Fri, 21 Feb 2014 08:02:05 +0000 (09:02 +0100)
committermartin rudalics <rudalics@gmx.at>
Fri, 21 Feb 2014 08:02:05 +0000 (09:02 +0100)
commit8bb651e96caddf9bde8d382b0fa4cc166c6703b9
treef2c333288602530e27e6ec1fb9d86cb520d177de
parent371c6943f895c06a988729a089b9a28bb183e937
Fix handling of window-min-height/-width (Bug#16738).

* window.el (window--dump-window, window--dump-frame): New
functions.
(window--min-size-1): Account for window dividers.  When
window-resize-pixelwise is nil, delay rounding till after the
sum of the window components has been calculated.
(window--min-delta-1, window--max-delta-1): When PIXELWISE is
nil make sure at least one text line and two text columns remain
fully visible.
(window-resize): Signal an error when window-resize-apply fails.
(window--resize-child-windows): Fix calculation of by how many
pixels a window can still be shrunk via window-new-normal.
(adjust-window-trailing-edge): Call window--resizable with
correct TRAIL argument.
lisp/ChangeLog
lisp/window.el
src/ChangeLog
src/window.c